package com.ktjiaoyu.demo2;

import java.awt.*;

/**
 * @ClassName : ColorInk
 * @Description :
 * @Author : Lzz
 * @Date: 2023/9/25 10:36:24
 */
public class ColorInk  implements Ink{

    @Override
    public String getColor(int red, int green, int blue) {
        Color color = new Color(red,green,blue);
        return "#"+Integer.toHexString(color.getRGB()).substring(2);
    }
}
